/*
 *  ScannerFSMExceptions.cpp
 *  Parser
 *
 *  Created by Christoph Ehscheidt on 10.02.08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "ScannerFSMExceptions.h"


/**
* EXCEPTION DEFINITION
**************************/
/**
* Exception class.
*/

	ScannerFSMException::ScannerFSMException(char* msg) {
		this->msg = msg;
	}
	
	char* ScannerFSMException::getMessage() {
		return this->msg;
	}



/**
* EXCEPTION DEFINITION
**************************/
/**
* Syntax Exception class.
*/

	ScannerFSMSyntaxException::ScannerFSMSyntaxException(char* msg, char *lexem, unsigned int line, unsigned int column)  : ScannerFSMException(msg){
		this->line = line;
		this->column = column;
		this->lexem = lexem;
	}
	
	char* ScannerFSMSyntaxException::getLexem() { return this->lexem; }
	unsigned int ScannerFSMSyntaxException::getLine() { return this->line; }
	unsigned int ScannerFSMSyntaxException::getColumn() { return this->column; }
	



/**
* EXCEPTION DEFINITION
**************************/
/**
* Range Exception class.
*/
	ScannerFSMRangeException::ScannerFSMRangeException(char* msg, char* lexem, unsigned int line, unsigned int column) : ScannerFSMSyntaxException(msg, lexem, line, column){};

